package com.yaglyf.mvc.controller.vo.Result;

import com.yaglyf.mvc.emun.ResultEmun;

/**
 * Title: Class CommentsShow
 * Description:
 * 注释展示类，说明各种方法注释怎么写
 *
 * @author qiang.yang
 * @version 1.0.0
 * @email qiang.yang@chinaredstar.com
 * @date: 2016/10/19 15:52
 */
public class Result {

    private String code;

    private String message;

    private boolean suc;

    private Object data;


    public Result() {
    }

    public Result(ResultEmun result) {
        this.code = result.getCode();
        this.message = result.getMessage();
        this.suc = result.isSuccess();
    }

    public Result(ResultEmun result,Object data) {
        this.code = result.getCode();
        this.message = result.getMessage();
        this.suc = result.isSuccess();
        this.data = data;
    }

    public String getCode() {
        return code;
    }

    public Result setCode(String code) {
        this.code = code;
        return this;
    }

    public Object getData() {
        return data;
    }

    public Result setData(Object data) {
        this.data = data;
        return this;
    }

    public boolean getSuc() {
        return suc;
    }

    public Result setSuc(boolean suc) {
        this.suc = suc;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public Result setMessage(String message) {
        this.message = message;
        return this;
    }
}
